package main

import "net/http"
import "fmt"
import (
    "flag"
    "os"
)
func main () {
	flag.Parse()
  args := flag.Args()
  if len(args) < 1 {
    fmt.Println("Input URL is missing.");
    os.Exit(1);
  }	
	
	resp, err := http.Get(args[0])
	if err != nil {
		panic(err.Error())
	// handle error
  }

	fmt.Println(resp.Status)
}

